{include file="public/head"/}
<div class="layui-fluid" id="LAY-app-message">
    <div class="layui-card">
        <div class="layui-card-header">字段列表</div>
        <input type="hidden" id="mid" value="{:input('mid')}">
        <div class="layui-card-body">
            <div class="clt-auth-btns" style="margin-bottom: 10px;">
                <button class="layui-btn layui-btn-sm" data-type="add">添加字段</button>
            </div>
            <table class="layui-table" id="list" lay-filter="list"></table>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script type="text/html" id="isSystem">
    {{# if(d.issystem == 1){ }}
    <i class="layui-icon layui-icon-ok" style="color:#5FB878"></i>
    {{# }else{ }}
    <i class="layui-icon layui-icon-close" style="color:#FF5722"></i>
    {{# } }}
</script>
<script type="text/html" id="required">
    {{# if(d.required == 1){ }}
    <i class="layui-icon layui-icon-ok" style="color:#5FB878"></i>
    {{# }else{ }}
    <i class="layui-icon layui-icon-close" style="color:#FF5722"></i>
    {{# } }}
</script>
<script type="text/html" id="action">
    {{# if(d.disable==1){ }}
    <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="stateyes">已禁用</button>
    {{# }else if(d.disable==2){ }}
    <button class="layui-btn layui-btn-xs layui-btn-disabled">已禁用</button>
    {{# }else{ }}
    <button class="layui-btn layui-btn-xs layui-btn-warm" lay-event="stateyes">已启用</button>
    {{# } }}
    <button data-mid="{{d.modelid}}" class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    {{# if(d.delStatus==1){ }}
    <button class="layui-btn layui-btn-xs layui-btn-disabled">删除</button>
    {{# }else{ }}
    <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</button>
    {{# } }}
</script>
<script>
    layui.config({
        base: '__LAYADMIN__/',
        version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','field']);
</script>
</body>
</html>